<%@ page import="java.util.HashMap"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@include file="../../common/Include_input_head.jsp"%>

<%
	HashMap<String, String> hm = (HashMap<String, String>) request.getAttribute("hm");
%>
<script type="text/javascript" src="${basePath}/resources/js/common/jquery.colorpicker.js"></script>
<script type="text/javascript" src="${basePath }/component/datepicker/WdatePicker.js"></script>
<!--富文本编辑-->
<script src="${basePath }/kindeditor/kindeditor-min.js"></script>
<script src="${basePath }/kindeditor/config_admin.js"></script>
<!--富文本编辑end-->
<title>维护菜单</title>
<script type="text/javascript">
	detailPageStyle();
	var editor_zyms;
	$(document).ready(function() {

		<s:if test="refresh">
		window.parent.window.frames["menuFrame"].location.reload();
		</s:if>

		$("td[s]").each(function() {
			var $this = $(this);
			$.each($(this).attr("s").split(","), function(i, s) {
				$this.find(":checkbox[value='" + s.replace(/(^\s*)|(\s*$)/g, "") + "']").attr("checked", "checked");
			});
		});
		//服务资源类别默认全部选中
		if ($("#menuid").val() == '') {
			$(":checkbox[name='tsysMenu.fwlb']").attr("checked", "checked");
		}
		//点击图标库中的图片,设置图标
		$(".iconDiv li").click(function() {
			$(".choosed").removeClass("choosed");
			var iconName = $(this).attr("s");
			$("#tb").val(iconName);
			$(this).find("div:first").addClass("choosed");
			$(".tbDiv img").attr("src", "${basePath}/resources/images/shd/icons/" + iconName).show();
			$(".iconDiv,.popupDiv").hide();
		});
		//点击设置图标
		$(".editIcon").click(function() {
			$(".popupDiv,.iconDiv").show();
		});
		//点击弹出层
		$(".popupDiv").click(function() {
			$(".popupDiv,.iconDiv").hide();
		});
		//单选框默认选中第一个
		$("td:has(:radio)").each(function() {
			if ($(this).find(":radio:checked").length == 0)
				$(this).find(":radio:first").attr("checked", "checked");
		});
		//菜单名称失去焦点时
		$("#menuname").blur(function() {
			$(".iconTitle").html($(this).val());
		});

		$(".iconDiv").css({
			"left" : "60px",
			"top" : "20px",
			"width" : $(window).width() - 120,
			"height" : $(window).height() - 60
		});

		var services = $("#services").val();
		var services_s = services.split(",");
		for (var i = 0; i < services_s.length; i++) {
			$("#serviceid_" + services_s[i]).attr("checked", true);
		}
	});
	function doSave() {
		if (null != editor) {
			editor.sync();
		}
		if (null != editor_zyms) {
			editor_zyms.sync();
		}

		if (!checkInput("menuname", "菜单名称不能为空！")) {
			return false;
		}
		if (!checkInput("ordernum", "排序值不能为空！")) {
			return false;
		}
		return super_doSave();
	}
	function submitRemoveMenu() {
		var conf = window.confirm("删除此菜单会同时删除其下所有子菜单！\n\n您确定要删除吗？");
		if (conf == true) {
			var ids = document.getElementById("menuid").value;
			if (ids.length > 0) {
				var url = actionName + "-remove.action";
				$.post(url, {
					menuid : ids,
					reqtime : (new Date()).getTime()
				}, function(data) {
					//alert("Data Loaded: " + data);
					if (data.indexOf("删除成功") != -1) {
						alert("删除成功！");
					} else {
						alert(data);
					}
					window.parent.window.frames["menuFrame"].location.reload();
					//window.parent.window.frames["menuFrame"].location.href = "idMenu-list.action?"+(new Date()).getTime();
					$("input[name^=tsysMenu]").each(function() {
						$(this).val("");
					});
				});
			} else {
				alert("无要删除的项!");
			}
		}
	}
	function input() {
		var uri = actionName + "-input.action?tsysMenu.upmenuid=<s:property value="tsysMenu.menuid"/>&tsysMenu.belongtoapp=<s:property value="tsysMenu.belongtoapp"/>";
		window.location.href = uri;
	}

	function szgz() {
		var url = "${basePath}/business/regulation-szgx.action?zywid=" + '<s:property value="tsysMenu.menuid"/>';
		top.Dialog.open({
			URL : url,
			Title : "关联规则",
			Width : 800,
			Height : 500
		});
	}
	function goButtonList() {
		var uri = "idButton-list.action?tsysButton.menuid=<s:property value="tsysMenu.menuid"/>";
		window.location.href = uri;
	}
	function submitCopyMenu() {
		var parentNodeId = window.showModalDialog("idMenu-list.action", window);// 复制到哪个节点下
		if (parentNodeId != null && parentNodeId != "") {
			var confirm_ = confirm("确定要复制到“" + $("#tem_nameObjid").val() + "”下面吗？");
			if (confirm_) {
				var thisNodeId = $("#menuid").val();
				var url = "idMenu-copyNode.action";
				$.post(url, {
					'tsysMenu.upmenuid' : parentNodeId,
					'tsysMenu.menuid' : thisNodeId
				}, function(data) {// 保存到新节点下
					if (data == "ok") {
						alert("复制成功");
						window.parent.window.frames["menuFrame"].location.reload();
					} else {
						alert(data);
					}
				});
			}
		}
	}
	var tem_valueObjid = "tem_valueObjid";
	var tem_nameObjid = "tem_nameObjid";
	function submitMoveMenu() {
		var parentNodeId = window.showModalDialog("idMenu-list.action?appid=" + $("#belongtoapp").val(), window);// 复制到哪个节点下
		if (parentNodeId != null && parentNodeId != "") {
			var confirm_ = confirm("确定要移动到“" + $("#tem_nameObjid").val() + "”下面吗？");
			if (confirm_) {
				var thisNodeId = $("#menuid").val();
				var url = "idMenu-moveNode.action";
				if (parentNodeId.indexOf('000') != 0) {
					parentNodeId = '000';
				}
				$.post(url, {
					'tsysMenu.upmenuid' : parentNodeId,
					'tsysMenu.menuid' : thisNodeId
				}, function(data) {// 保存到新节点下
					if (data == "ok") {
						alert("移动成功");
						window.parent.window.frames["menuFrame"].location.reload();
					} else {
						alert(data);
					}
				});
			}
		}
	}

	function doAddPortal() {
		var state = $(":radio[name='tsysMenu.state']:checked").val();
		if (state == '0') {
			alert('该菜单已禁用，不可以同步！');
			return false;
		}
		var url = "idMenu-addPortal.action";
		var thisNodeId = $("#menuid").val();
		var fwsyfl = $("#fwsyfl").val();
		if (fwsyfl == '') {
			alert("请选择添加到门户下的分类！");
			return false;
		}
		$.post(url, {
			'tsysMenu.menuid' : thisNodeId,
			'tsysMenu.fwsyfl' : fwsyfl
		}, function(data) {// 保存到新节点下
			if (data == "ok") {
				alert("添加到门户成功");
				window.parent.window.frames["menuFrame"].location.reload();
				window.location.reload();
			} else {
				alert(data);
			}
		});
	}

	function openEntity(id, readOnlyPage, urlParameterStr, actionMethod, myActionName) {
		var uri;
		var _actionMethod = "input";
		if (actionMethod && actionMethod.length > 0) {
			_actionMethod = actionMethod;
		}
		if (myActionName && myActionName.length > 0) {
			actionName = myActionName;
		}
		uri = actionName + "-" + _actionMethod + "." + uri_suffix + "?reqtime=" + new Date().getTime();

		if (id && id.length > 0) {
			uri += "&wid=" + id;
		}
		if (urlParameterStr && urlParameterStr.length > 0) {
			uri += "&" + urlParameterStr;
		}

		var windowWidth = document.body.clientWidth - 200;
		var windowHeight = document.body.clientHeight - 60;
		if (windowWidth < 650)
			windowWidth += 160;
		//	var windowHeight = 420;

		if (readOnlyPage || readOnlyPage == "true") {
			uri += "&readOnlyPage=" + readOnlyPage;
			openWindow(uri, windowWidth, windowHeight);
		} else if (dialogType_debug) {
			openDebugWindow(uri);
		} else {
			openWindow(uri, windowWidth, windowHeight);
		}
	}

	$(function() {
		$("#bgcolor").colorpicker({
			fillcolor : true
		});

		$("#color").colorpicker({
			fillcolor : true
		});
	});

	/******************富文本编辑器初始化*******************/
	var editor;
	$(function() {
		editor = KindEditor.create('textarea[id="rulesintroduced"]');
		editor_zyms = KindEditor.create('textarea[id="attention"]', {
			resizeType : 1,
			allowPreviewEmoticons : true,
			allowImageUpload : false,
			allowFileManager : false,
			syncType : 'form',
			items : [ 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline', 'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', 'insertunorderedlist', '|', 'emoticons', 'link' ]
		});
	});
	/******************富文本编辑器初始化*******************/
</script>
<style type="text/css">
.popupDiv {
	background-color: #333;
	filter: alpha(opacity = 50);
	opacity: 0.5;
	z-index: 9999;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	display: none;
}

.iconDiv {
	z-index: 10001;
	width: 830px;
	height: 600px;
	overflow: auto;
	position: absolute;
	top: 0;
	left: 100px;
	background-color: #fff;
	padding: 10px 20px;
	display: none;
}

.iconDiv ul {
	margin: 0;
	padding: 0;
}

.iconDiv ul li {
	float: left;
	list-style: none;
	margin: 0 8px 8px 0;
	display: inline-block;
	padding: 0;
	width: 153px;
	height: 100px;
	position: relative;
	cursor: pointer;
}

.iconDiv ul li div.iconDivParent {
	height: 97px;
}

.iconDiv ul li div.choosed {
	border: 3px solid red;
}

.iconDiv ul li div img {
	position: absolute;
	width: 60px;
	height: 60px;
	left: 46px;
	top: 15px;
}

.iconDiv ul li div .iconTitle {
	position: absolute;
	color: #fff;
	font-family: 'Microsoft YaHei';
	text-decoration: none;
	width: 100%;
	text-align: center;
	font-size: 14px;
	top: 75px;
}

.tbDiv {
	padding: 0;
	width: 153px;
	height: 100px;
	position: relative;
	float: left;
}

.tbDiv img {
	position: absolute;
	left: 46px;
	top: 15px;
	width: 60px;
	height: 60px;
}

.tbDiv .iconTitle {
	position: absolute;
	color: #fff;
	font-family: 'Microsoft YaHei';
	text-decoration: none;
	width: 100%;
	text-align: center;
	font-size: 14px;
	top: 75px;
}

.editIcon {
	cursor: pointer;
	color: blue;
}

.editTbDiv {
	float: left;
	margin-left: 20px;
}

.editTbDiv div {
	line-height: 35px;
}

.iconDiv_type {
	overflow: auto;
	top: 0;
	left: 100px;
	background-color: #fff;
	padding: 10px 20px;
}

.iconDiv_type ul {
	margin: 0;
	padding: 0;
	text-align: left;
}

.iconDiv_type ul li {
	float: left;
	list-style: none;
	margin: 0 8px 8px 0;
	display: inline-block;
	padding: 0;
	min-width: 100px;
	height: 30px;
	position: relative;
	cursor: pointer;
}

.iconDiv_type ul li div.iconDivParent {
	height: 30px;
	line-height: 30px;;
}

.iconDiv_type ul li div .iconTitle {
	position: absolute;
	color: #fff;
	font-family: 'Microsoft YaHei';
	text-decoration: none;
	width: 100%;
	text-align: center;
	font-size: 14px;
	top: 75px;
}
</style>
</head>

<body style="text-align: center;">
	<s:form name="ysform" method="post" theme="simple">
		<s:hidden id="menuid" name="tsysMenu.menuid" />
		<s:hidden name="tsysMenu.upmenuid" />
		<s:hidden name="tsysMenu.depth" />
		<s:hidden name="tsysMenu.bizcode" />
		<s:hidden name="tsysMenu.upbizcode" />
		<s:hidden name="tsysMenu.srctype" value="1" />
		<s:hidden name="tsysMenu.belongtoapp" id="belongtoapp" />
		<s:hidden name="services" id="services" />
		<input type="hidden" name="tem_nameObjid" id="tem_nameObjid" />
		<input type="hidden" name="tem_valueObjid" id="tem_valueObjid" />

		<div class="box1" panelWidth="99%">
			<fieldset>
				<legend>资源信息</legend>
				<table class="tableStyle" transMode="true" footer="normal">
					<%--<tr>
                    <td align="right">类型：</td>
                    <td align="left">
                        <span class="float_left">
                              <s:radio id="srctype" name="tsysMenu.srctype" list="getSysCode('zylx')" listKey="id"
                                       listValue="caption"/> <label style="color:red">*</label>
                        </span>
                        <span class="img_light" title="方法指编程实现的函数；<br>服务指门户上使用的服务；<br>portlet指liferay门户的portlet"></span>
                    </td>
                </tr>--%>
					<tr>
						<td align="right" width="16%" nowrap="nowrap">名称：</td>
						<td align="left"><s:textfield id="menuname" name="tsysMenu.menuname" maxlength="25" size="30" cssStyle="width: 350px" /> <label style="color: red">*</label></td>
					</tr>
					<tr>
						<td align="right">URI链接：</td>
						<td align="left"><s:textfield id="menupath" name="tsysMenu.menupath" maxlength="200" size="80" cssStyle="width: 350px" /></td>
					</tr>
					<tr>
						<td align="right">排序值：</td>
						<td align="left"><s:textfield id="ordernum" name="tsysMenu.ordernum" maxlength="5" size="6" onkeypress="NumberText(event)" cssStyle="width: 350px" /> <label style="color: red">*</label> <font color="#999999">说明：同一层次中数值大的往前排</font></td>
					</tr>
					<tr>
						<td align="right">状态：</td>
						<td align="left"><s:radio id="menustate" name="tsysMenu.state" list="#{1:'启用', 0:'禁用'}" listKey="key" listValue="value" /> <label style="color: red">*</label></td>
					</tr>
					<%--<tr>
                    <td align="right">服务类别：</td>
                    <td align="left" s="<s:property value="tsysMenu.fwlb"/>">
                        <s:checkboxlist name="tsysMenu.fwlb" list="getSysCode('fwlb')" listKey="id"
                                        listValue="caption"/>
                        <font color="#999999">说明：门户中服务资源组件的分类</font></td>
                </tr>--%>
					<tr>
						<td align="right">是否适配移动端：</td>
						<td align="left"><s:radio id="ismobile" name="tsysMenu.ismobile" list="#{1:'是', 0:'否'}" listKey="key" listValue="value" /> <font color="#999999">说明：门户中服务资源组件是否适配移动端</font></td>
					</tr>
					<tr>
						<td align="right">是否移动端推荐的服务：</td>
						<td align="left"><s:radio id="appsftj" name="tsysMenu.appsftj" list="#{1:'是', 0:'否'}" listKey="key" listValue="value" /> <font color="#999999">说明：门户中服务资源组件是否移动端推荐的服务</font></td>
					</tr>
					<tr>
						<td align="right">是否推荐：</td>
						<td align="left"><s:radio id="sftj" name="tsysMenu.sftj" list="#{1:'是', 0:'否'}" listKey="key" listValue="value" /> <font color="#999999">说明：门户中服务资源组件是否推荐</font></td>
					</tr>
					<%--<tr>
                        <td align="right">访问权限：</td>
                        <td align="left">
                            <s:radio name="tsysMenu.isshare" list="#{1:'所有人', 0:'指定角色'}" listKey="key" listValue="value" />
                            <label style="color:red">*</label></td>
                        <s:property value="sftjdmh"/>

                    </tr>--%>
					<tr>
						<td align="right" valign="top">图标：</td>
						<td align="left"><s:hidden id="tb" name="tsysMenu.tb" />
							<div id="tbDivcp3" class="tbDiv">
								<img src="${basePath}/resources/images/shd/icons/<s:property value="tsysMenu.tb"/>" <s:if test="tsysMenu.tb == null">style="display: none"</s:if>>

									<div class="iconTitle" style="color: <s:property value="tsysMenu.color" />">
										<s:property value="tsysMenu.menuname" />
									</div>
							</div>

							<div class="editTbDiv">
								<%--<div>背景颜色：<s:textfield id="bgcolor" name="tsysMenu.bgcolor"></s:textfield></div>--%>
								<div>
									字体颜色：
									<s:textfield id="color" name="tsysMenu.color"></s:textfield>
								</div>
								<div class="editIcon">设置图标</div>
							</div>
							<div style="clear: both;"></div> <font color="#999999">说明：门户中用于服务资源组件的展示</font></td>
					</tr>

					<s:if test="!tsysMenu.portal">
						<tr>
							<s:if test="tsysMenu.fwsyfl == null">
								<td align="right">门户下关联资源分类：</td>
							</s:if>
							<s:else>
								<td align="right">添加到门户下的分类：</td>
							</s:else>
							<td align="left"><s:if test="tsysMenu.fwsyfl == null">
									<s:select id="fwsyfl" name="tsysMenu.fwsyfl" list="ServiceMenu" listKey="id" listValue="caption" headerKey="" headerValue="-----请选择-----" />
								</s:if> <s:else>
									<s:select name="tsysMenu.fwsyfl" list="ServiceMenu" listKey="id" listValue="caption" disabled="true" />
								</s:else> <font color="#999999">说明：添加到门户资源管理菜单的分类下</font></td>
						</tr>
					</s:if>
					<tr>
						<td align="right">创建日期：</td>
						<td align="left"><input name="tsysMenu.cjrq" id="cjrq" style="width: 178px;" onclick="WdatePicker({startDate:'%y-%M-%d',dateFmt:'yyyy-MM-dd',alwaysUseStartDate:true})" value="<s:date name="tsysMenu.cjrq" format="yyyy-MM-dd"/>" /></td>
					</tr>
					<tr>
						<td align="right">点击次数：</td>
						<td align="left"><s:textfield id="djs" name="tsysMenu.djs" maxlength="200" size="80" cssStyle="width: 178px" /></td>
					</tr>
					<tr>
						<td align="right" valign="top">备注：</td>
						<td align="left"><s:textarea name="tsysMenu.des" cssStyle="width: 449px;height: 100px;"></s:textarea></td>
					</tr>
				</table>
				<div class="popupDiv"></div>
				<div class="iconDiv">
					<ul>
						<s:iterator value="listIcon" var="icon">
							<li s="<s:property value="icon"/>">
								<div class="iconDivParent <s:if test="tsysMenu.tb == #icon">choosed</s:if>">
									<img src="${basePath}/resources/images/shd/icons/<s:property value="icon"/>">
										<div class="iconTitle" style="color: <s:property value="tsysMenu.color" />">
											<s:property value="tsysMenu.menuname" />
										</div>
								</div>
							</li>
						</s:iterator>
					</ul>
				</div>
			</fieldset>
			<s:if test="tsysMenu.portal">
				<fieldset>
					<legend>资源分类</legend>
					<div class="iconDiv_type">
						<s:iterator value="tservicecodesortList" var="tservicecodesort">
							<ul>
								<li>
									<div style="text-align: left;">
										<s:property value="lbmc" />
										:
									</div>
								</li>
								<s:iterator value="tservicecodeList" var="tservicecode">
									<li>
										<div class="iconDivParent">
											<input type="checkbox" name="serviceid" value="<s:property value="zdbm"/>" id="serviceid_<s:property value="zdbm"/>" />
											<s:property value="zdmc" />
										</div>
									</li>
								</s:iterator>
							</ul>
							<br />
						</s:iterator>
					</div>
				</fieldset>
				<s:if test="projectCode == projectCode_sddx">
					<fieldset>
						<legend>资源描述</legend>
						<table class="tableStyle" transMode="true" footer="normal">
							<tr>
								<td width="10%" align="right" nowrap="nowrap">办理单位：</td>
								<td width="40%" align="left"><s:textfield name="tserviceintroducd.unit" cssStyle="width: 200px;" /> <label style="color: red">*</label></td>
								<td width="10%" align="right" nowrap="nowrap">办理时间：</td>
								<td width="40%" align="left"><s:textfield name="tserviceintroducd.workingtime" cssStyle="width: 200px;" /> <label style="color: red">*</label></td>
							</tr>
							<tr>
								<td width="10%" align="right" nowrap="nowrap">办理地点：</td>
								<td width="40%" align="left"><s:textfield name="tserviceintroducd.workingplace" cssStyle="width: 200px;" /> <label style="color: red">*</label></td>
								<td width="10%" align="right" nowrap="nowrap">联系电话：</td>
								<td width="40%" align="left"><s:textfield name="tserviceintroducd.contact" cssStyle="width: 200px;" /> <label style="color: red">*</label></td>
							</tr>
							<tr>
								<td width="10%" align="right" nowrap="nowrap">流程版本：</td>
								<td width="40%" align="left" colspan="3"><s:select name="tserviceintroducd.version" list="getSysCode('version')" headerKey="" headerValue="-----请选择-----" listKey="id" listValue="caption" cssStyle="width: 200px;"></s:select> <label
										style="color: red">*</label></td>
							</tr>
							<tr>
								<td width="10%" align="right" nowrap="nowrap">流程说明：</td>
								<td width="90%" align="left" colspan="3"><s:textarea name="tserviceintroducd.rulesintroduced" id="rulesintroduced" cssStyle="width:80%;height: 350px;" /></td>
							</tr>
							<tr>
								<td width="10%" align="right" nowrap="nowrap">注意事项：</td>
								<td width="90%" align="left" colspan="3"><s:textarea name="tserviceintroducd.attention" id="attention" cssStyle="width:450px;height: 150px;" /></td>
							</tr>
						</table>
					</fieldset>
				</s:if>
			</s:if>
			<div class="padding_top10">
				<table class="tableStyle" transMode="true">
					<tr>
						<td colspan="4"><s:if test="tsysMenu.auc">
								<!--AuC-->
								<input type="button" id="ysSaveButton" value=" 保 存 " onclick="doSave()" />&nbsp;
                            <input type="button" id="ysDeleteButton" value=" 删 除 " onclick="submitRemoveMenu()" />&nbsp;
                            <s:if test="!tsysMenu.aucMenu">
									<input type="button" id="ysInsertButton" value=" 添加资源 " onclick="input()" title="在此节点下添加子资源" />
								</s:if>
							</s:if> <s:elseif test="tsysMenu.portal">
								<!--门户-->
								<s:if test="tsysMenu.portalMenu">
									<input type="button" id="ysSaveButton" value=" 保 存 " onclick="doSave()" />&nbsp;
                                <input type="button" id="ysDeleteButton" value=" 删 除 " onclick="submitRemoveMenu()" />&nbsp;
                                <input type="button" id="ysMoveButton" value=" 移 动 " onclick="submitMoveMenu()" title="注意：移动菜单后，对该菜单的所有引用都将被更新成新菜单的引用！" />&nbsp;
                            </s:if>
								<s:elseif test="tsysMenu.portalMenuType">
									<input type="button" id="ysSaveButton" value=" 保 存 " onclick="doSave()" />&nbsp;
                                <input type="button" id="ysDeleteButton" value=" 删 除 " onclick="submitRemoveMenu()" />&nbsp;
                                <input type="button" id="ysInsertButton" value=" 添加资源 " onclick="input()" title="在此节点下添加子资源" />
									<input type="button" id="batchAddButton" value="批量添加到门户" onclick="openEntity('<s:property value="tsysMenu.menuid" />','','','batchadd','')" />
								</s:elseif>
								<s:else>
									<input type="button" id="ysSaveButton" value=" 保 存 " onclick="doSave()" />&nbsp;
                                <input type="button" id="ysDeleteButton" value=" 删 除 " onclick="submitRemoveMenu()" />&nbsp;
                                <input type="button" id="ysInsertButton" value=" 添加资源 " onclick="input()" title="在此节点下添加子资源" />
								</s:else>
							</s:elseif> <s:else>
								<!--其他-->
								<s:if test="tsysMenu.fwsyfl == null">
									<input type="button" id="addButton" value="添加到门户" onclick="doAddPortal()" />&nbsp;
                            </s:if>
								<s:if test="tsysMenu.menuid.length()==6">
									<input type="button" id="ysSaveButton" value=" 保 存 " onclick="doSave()" />&nbsp;
                            </s:if>
							</s:else> <s:if test="actionErrors.size()>0 || actionMessages.size()>0 || fieldErrors.size()>0">
								<span id="SystemErrorMessage">
									<s:actionerror />
									<s:actionmessage />
									<s:fielderror />
								</span>
							</s:if></td>
					</tr>
				</table>
			</div>
		</div>
	</s:form>

</body>
</html>
